package com.xinghanlaser.applet.vo.applet;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * <p>
 *
 * @author: mftuo 陀铭峰
 * @since: 2024/5/6 10:05
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class KnowledgePutVO {
    @NotNull(message = "ID不能为空")
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;
}
